﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Private/SiteAdmin.Master" AutoEventWireup="true"
    CodeBehind="EditUserForm.aspx.cs" Inherits="Obligatorio2013.Pages.EditUserForm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="lblController" runat="server" Text=""></asp:Label>
    <asp:Panel ID="Panel1" runat="server" GroupingText="User Registration" Height="300px"
        Width="721px">
        <asp:Label ID="lblName" runat="server" Width="70px" Text="Nombre"></asp:Label>
        <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="nameValidator" runat="server" Display="Dynamic" ControlToValidate="txtName"
            ErrorMessage="Nombre es un campo requerido">*</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblLastName" runat="server" Width="70px" Text="Apellido"></asp:Label>
        <asp:TextBox ID="txtLastName" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="lastNameValidator" runat="server" Display="Dynamic"
            ControlToValidate="txtLastName" ErrorMessage="Apellido es un campo requerido">*</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblAddress" runat="server" Width="70px" Text="Direccion"></asp:Label>
        <asp:TextBox ID="txtAddress" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="addressValidator" runat="server" Display="Dynamic"
            ControlToValidate="txtAddress" ErrorMessage="Direccion es un campo requerido">*</asp:RequiredFieldValidator>
        <br />
        <br />
        &nbsp;<asp:Label ID="lblLocation" runat="server" Text="Localidad" Width="70px"></asp:Label>
        <asp:TextBox ID="txtLocation" runat="server" Width="200px"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="lblPhone" runat="server" Text="Telefono" Width="70px"></asp:Label>
        <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="phoneVAlidator" runat="server" ControlToValidate="txtPhone"
            Display="Dynamic" ErrorMessage="Telefono es un campo requerido">*</asp:RequiredFieldValidator>
        <br />
        <br />
        &nbsp;<asp:Label ID="lblEmail" runat="server" Text="Email" Width="70px"></asp:Label>
        <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="emailValidator" runat="server" ControlToValidate="txtEmail"
            Display="Dynamic" ErrorMessage="Email es un campo requerido">*</asp:RequiredFieldValidator>
        &nbsp;&nbsp;<asp:RegularExpressionValidator ID="emailCheck" runat="server" ControlToValidate="txtEmail"
            ErrorMessage="Formato de correo no valido" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">**</asp:RegularExpressionValidator>
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Tipo " Width="70px" />
        <asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem Value="Invitado">Invitado</asp:ListItem>
            <asp:ListItem Value="Publicador">Publicador</asp:ListItem>
            <asp:ListItem Value="Administrador">Administrador</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="lblUser" runat="server" Text="Usuario" Width="70px"></asp:Label>
        <asp:TextBox ID="txtUser" runat="server" Width="200px"/>
        <asp:RequiredFieldValidator ID="txtUSerValidator1" runat="server" Display="Dynamic"
            ControlToValidate="txtUser" ErrorMessage="Usuario es un campo requerido">*</asp:RequiredFieldValidator> 
        <br />
        <br />
        <asp:Label ID="lblPass" runat="server" Text="Contrasena" Width="70px"></asp:Label>
        <asp:TextBox ID="txtPass" runat="server" TextMode="password" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="txtPassValidator1" runat="server" Display="Dynamic"
            ControlToValidate="txtPass" ErrorMessage="Password es un campo requerido">*</asp:RequiredFieldValidator> 
        <br />
        <br />
        <asp:CheckBox ID="chkSuspendido" runat="server" Text="Suspendido" OnCheckedChanged="chkSuspendido_CheckedChanged"
            AutoPostBack="true" />
        <br />
        <br />

        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:TextBox ID="Date1" runat="server" Width="200px"></asp:TextBox>
        <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="Date1"
            CssClass="ClassName" PopupPosition="BottomRight" Format="MMMM d, yyyy" PopupButtonID="Image1" />

        <br />
        <br /><br />
        <br />
        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Guardar" />
        &nbsp;
        <asp:Button ID="btnCancel" runat="server" Text="Cancelar" CausesValidation="false"
            OnClick="btnCancel_Click" />
        <br />
    </asp:Panel>
    <blockquote dir="ltr" style="margin-right: 0px">
        &nbsp;<asp:ValidationSummary ID="vsResumen" runat="server" HeaderText="Resumen de Errores"
            Height="82px" Style="text-align: justify" Width="238px" />
    </blockquote>
    <br />
</asp:Content>
